﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Shop.Infrastructure.Caching
{
    public class NotCacheProvider : CacheProvider
    {
        public override bool Add(string key, object value, System.Runtime.Caching.CacheItemPolicy policy, string regionName = null)
        {
            return false;
        }

        public override void Clear(string regionName = null)
        {
        }

        public override bool Contains(string key, string regionName = null)
        {
            return false;
        }

        public override System.Runtime.Caching.CacheEntryChangeMonitor CreateCacheEntryChangeMonitor(IEnumerable<string> keys, string regionName = null)
        {
            return null;
        }

        public override System.Runtime.Caching.DefaultCacheCapabilities DefaultCacheCapabilities
        {
            get
            {
                return System.Runtime.Caching.DefaultCacheCapabilities.None;
            }
        }

        public override object Get(string key, string regionName = null)
        {
            return null;
        }

        public override System.Runtime.Caching.CacheItem GetCacheItem(string key, string regionName = null)
        {
            return null;
        }
        
        public override object Remove(string key, string regionName = null)
        {
            return null;
        }

        public override void Set(string key, object value, System.Runtime.Caching.CacheItemPolicy policy, string regionName = null)
        {
        }
    }
}
